/*
 * @Description:
 * @Author: william
 * @Date: 2025-06-16 15:46:00
 * @LastEditors: william
 * @LastEditTime: 2025-09-16 19:14:24
 */
const prefix = '/device'
const prefix2 = '/peripheral'
const prefix3 = '/flavouradjust'

// =====================  设备管理 =====================
// -------------------  修改设备 -------------------
export const apiDeviceUpdate = data => g_https.post(`${prefix}/update`, data)

// -------------------  查询设备详情 -------------------
export const apiDeviceQueryDetail = data =>
  g_https.post(`${prefix}/queryDetail`, data)

// -------------------  查询设备列表 -------------------
export const apiDeviceList = data => g_https.post(`${prefix}/list`, data)

// -------------------  批量导入设备 -------------------
export const apiDeviceImport = data => g_https.post(`${prefix}/import`, data)

// -------------------  删除设备 -------------------
export const apiDeviceDelete = data => g_https.post(`${prefix}/delete`, data)

// -------------------  新增设备 -------------------
export const apiDeviceCreate = data => g_https.post(`${prefix}/create`, data)

// -------------------  查询设备型号列表 -------------------
export const apiDeviceQueryModelList = data =>
  g_https.get(`${prefix}/queryModelList`, data)

// -------------------  下载设备导入模板 -------------------
export const apiDeviceDownloadTemplate = data =>
  g_https.get(`${prefix}/downloadImportTemplate`, data)

// =====================  设备外设管理 =====================
// -------------------  修改设备外设 -------------------
export const apiPeripheralUpdate = data =>
  g_https.post(`${prefix2}/update`, data)

// -------------------  查询设备外设详情 -------------------
export const apiPeripheralQueryDetail = data =>
  g_https.post(`${prefix2}/queryDetail`, data)

// -------------------  查询设备外设列表 -------------------
export const apiPeripheralList = data => g_https.post(`${prefix2}/list`, data)

// -------------------  删除设备外设 -------------------
export const apiPeripheralDelete = data =>
  g_https.post(`${prefix2}/delete`, data)

// -------------------  新增设备外设 -------------------
export const apiPeripheralCreate = data =>
  g_https.post(`${prefix2}/create`, data)

// -------------------  查询设备外设型号列表 -------------------
export const apiPeripheralQueryTypeList = data =>
  g_https.get(`${prefix2}/queryTypeList`, data)


// =====================  投放管理 =====================

export const apiFlavouradjustUpdate = data =>
  g_https.post(`${prefix3}/update`, data)

// -------------------  查询投放管理详情 -------------------
export const apiFlavouradjustDetail = data =>
  g_https.post(`${prefix3}/queryDetail`, data)

// -------------------  查询投放管理列表 -------------------
export const apiFlavouradjustList = data => g_https.post(`${prefix3}/list`, data)

// -------------------  删除投放管理 -------------------
export const apiFlavouradjustDelete = data =>
  g_https.post(`${prefix3}/delete`, data)

// -------------------  新增投放管理 -------------------
export const apiFlavouradjustCreate = data =>
  g_https.post(`${prefix3}/create`, data)

// -------------------queryDeviceTypeStatisticsData  查询设备类型菜谱统计数据 -------------------
export const apiDeviceQueryDeviceTypeStatisticsData = data =>
  g_https.post(`${prefix}/queryDeviceTypeStatisticsData`, data)

// -------------------queryWorkTimeStatisticsData  查询设备工作时长统计数据 -------------------
export const apiDeviceQueryWorkTimeStatisticsData = data =>
  g_https.post(`${prefix}/queryWorkTimeStatisticsData`, data)